home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / GNU / GNUDBM / GNUDBM~ / <tarZ$use> / files / GNUDbm / MakeFile < prev    next >
Makefile  |  1991-02-14  |  2KB  |  65 lines

  1. # Makefile for gdbm.
  2. #
  3.  
  4. # Note: RANDOM_HASH causes gdbm to use a random hashing technique
  5. #       to give better results. It requires the random number functions
  6. #       from Lib:Utils. Also note that gdbm files created with RANDOM_HASH
  7. #       are incompatible with those created without it!!
  8.  
  9. CFLAGS = -DRANDOM_HASH -I$$.arm.clib.Utils
  10.  
  11. OFILES = O.Bucket O.Dbminit O.Delete O.Falloc O.Fetch O.Findkey O.Global \
  12.          O.Hash O.Seq O.Store O.Gdbmopen O.Gdbmdelete O.Gdbmfetch O.Gdbmseq \
  13.          O.Gdbmstore O.Update O.Gdbmclose O.Gdbmreorg O.Version
  14.  
  15. LIB = <C$$LibRoot>.GnuDBM.o
  16. HDR = <C$$LibRoot>.GnuDBM.h
  17.  
  18. LIBS = <C$$LibRoot>.o.Stubs <C$$LibRoot>.Utils.o.Utils
  19.  
  20. .PHONY: all install clean
  21.  
  22. all: gdbm
  23.  
  24. install: gdbm
  25.         Copy Gdbm $(LIB).Gdbm FQ~C~V
  26.         Access $(LIB).Gdbm R
  27.         Copy H.Gdbm $(HDR).Gdbm FQ~C~V
  28.         Copy H.Gdbmerrno $(HDR).Gdbmerrno FQ~C~V
  29.  
  30. clean:
  31.         Remove JunkDbm
  32.         Remove JunkDb!
  33.         Wipe O.*
  34.  
  35. clobber: clean
  36.         Remove Gdbm
  37.         Remove Test
  38.  
  39. Gdbm:   $(OFILES)
  40.         libfile Gdbm -c -f $(OFILES)
  41.         objlib Gdbm -c
  42.  
  43. Test:   O.Test Gdbm
  44.         Link -o Test O.Test Gdbm $(LIBS)
  45.         Squeeze Test
  46.  
  47. o.Bucket:       h.gdbm h.extern h.gdbmutils
  48. o.Dbminit:      h.gdbm h.extern h.gdbmutils
  49. o.Delete:       h.gdbm h.extern h.gdbmutils
  50. o.Falloc:       h.gdbm h.extern h.gdbmutils
  51. o.Fetch:        h.gdbm h.extern h.gdbmutils
  52. o.Findkey:      h.gdbm h.extern h.gdbmutils
  53. o.Gdbmclose:    h.gdbm h.extern h.gdbmutils
  54. o.Gdbmdelete:   h.gdbm h.extern h.gdbmerrno h.gdbmutils
  55. o.Gdbmfetch:    h.gdbm h.extern h.gdbmerrno h.gdbmutils
  56. o.Gdbmopen:     h.gdbm h.extern h.gdbmerrno h.gdbmutils
  57. o.Gdbmreorg:    h.gdbm h.extern h.gdbmerrno h.gdbmutils
  58. o.Gdbmseq:      h.gdbm h.extern h.gdbmutils
  59. o.Gdbmstore:    h.gdbm h.extern h.gdbmerrno h.gdbmutils
  60. o.Global:       h.gdbm h.extern h.gdbmerrno h.gdbmutils
  61. o.Hash:         h.gdbm h.extern h.gdbmutils
  62. o.Seq:          h.gdbm h.extern h.gdbmutils
  63. o.Store:        h.gdbm h.extern h.gdbmutils
  64. o.Update:       h.gdbm h.extern h.gdbmutils
  65.